/* filter.c */

/********************/
/* SOUND-GENERATOR  */
/* for Secure Phone */
/* (C) 2003 by NAH6 */
/********************/

/*------------*/
/*  INCLUDES  */
/*------------*/

#include <stddef.h>
#include <memory.h>

#include "filter.h"
#include "sound.h"

/*--------------*/
/*  PROTOTYPES  */
/*--------------*/

/*-------------*/
/*  VARIABLEN  */
/*-------------*/

static signed short sound_silence[K_FILTER_CHUNKSIZE_8K + K_FILTER_HISTORYLEN];

/*############################################################################*/




/*----*/
                                                        /* Sound for Hardware */
signed short sound_deliver (struct sound_dseg *dseg, signed short **data)
{
  /* Check Pointer */
  if (data == NULL)
    return E_SOUND_NULLPTR;

  *data = sound_silence + K_FILTER_HISTORYLEN;
  return 0;
}


/*** EOF ***/
